textview: use pixelcache rendered area to inform invalidation region.
authorChristian Hergert <christian@hergert.me>
Fri, 6 Sep 2013 22:52:33 +0000 (15:52 -0700)
committerAlexander Larsson <alexl@redhat.com>
Mon, 9 Sep 2013 08:47:30 +0000 (10:47 +0200)
commit9a45712ad674782841c83a01f810042ab92b60cd
tree8783e06b404554762a8fd27b47762e58a1c6dba8
parent61ebc98a4184286e5862a302879256963162986f
textview: use pixelcache rendered area to inform invalidation region.

Use the pixelcache rendered area to inform what part of the cache should
be invalidated upon changes to the underlying textlayout.

By rendering the background to the pixelcache, we can avoid the need to
use RGBA content.

Also, we're using the pixel cache on the text windows bin_window (see
gtk_text_view_get_window) so we need to register the invalidation handler
on that, otherwise the region passed to the invalidate handler will get
clipped to the visible region.

https://bugzilla.gnome.org/show_bug.cgi?id=707244
gtk/gtktextview.c